﻿using System.ComponentModel.DataAnnotations;

namespace Model.DTO.Article
{
    /// <summary>
    /// 编辑文章类型DTO
    /// </summary>
    public class EditArticleTypeDTO
    {
        /// <summary>
        /// 名称(16)
        /// </summary>
        [Required(ErrorMessage = "名称不能为空"), MaxLength(16, ErrorMessage = "名称不能超过16位")]
        public string Name { get; set; }
        /// <summary>
        /// 代码(16)
        /// </summary>
        [Required(ErrorMessage = "代码不能为空"), MaxLength(16, ErrorMessage = "代码不能超过16位")]
        public string Code { get; set; }
        /// <summary>
        /// Id
        /// </summary>
        [Required(ErrorMessage = "Id不能为空")]
        public int Id { get; set; }
        /// <summary>
        /// 备注(128)
        /// </summary>
        [MaxLength(128, ErrorMessage = "备注不能超过128位")]
        public string? Remark { get; set; }
        /// <summary>
        /// 描述(128)
        /// </summary>
        [MaxLength(128, ErrorMessage = "描述不能超过128位")]
        public string? Description { get; set; }
    }
}
